﻿<%@ Assembly Name="Microsoft.MCSUK.SPSiteDirectory2010, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8b65545c4d8ee868" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ScanJobManager.aspx.cs" MasterPageFile="~/_admin/admin.master" Inherits="Microsoft.MCSUK.SPSiteDirectory2010.ScanJobManager"%>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="~/_controltemplates/ButtonSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" src="~/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="SchedulePicker" src="~/_controltemplates/SchedulePicker.ascx" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">

</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
  <table width="100%" class="propertysheet" cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td class="ms-error">
            <asp:Literal ID="ErrorMessageLiteral" runat="server" EnableViewState="false" /> 
        </td>
    </tr>
  </table>
  
  <table border="0" cellspacing="0" cellpadding="0" width="100%">
    <tr>
      <td>
        <!-- web application status -->
        <wssuc:InputFormSection
            runat="server"
            Title="<%$Resources:SPSiteDirectory2010GlobalResources,ADMIN_ScanJobManager_WebAppSection_Title%>"
            Description="<%$Resources:SPSiteDirectory2010GlobalResources,ADMIN_ScanJobManager_WebAppSection_Description%>" >
            <Template_InputFormControls>
                <tr>
                    <td>
                        <SharePoint:WebApplicationSelector AllowAdministrationWebApplication="true" id="WebAppSelector" runat="server" OnContextChange="WebAppSelector_OnContextChange" />
                        <br />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="WebAppStatus" runat="server"></asp:Label>
                    </td>
                </tr>
            </Template_InputFormControls>
        </wssuc:InputFormSection>     
        
        <!-- scan job settings -->
        <wssuc:InputFormSection
			Title="<%$Resources:SPSiteDirectory2010GlobalResources,ADMIN_ScanJobManager_TimerJobSection_Title%>" 
			Description="<%$Resources:SPSiteDirectory2010GlobalResources,ADMIN_ScanJobManager_TimerJobSection_Description%>" 
            runat="server">
			<Template_InputFormControls>            
                <tr>
                    <td>
                    	<wssuc:SchedulePicker
						id="JobSchedule"
						Minutes="true"
						Hourly="true"
						Daily="true"
						Weekly="true"
						Monthly="true"
						runat="server" 
                        />
                    </td>
                </tr>
			</Template_InputFormControls>
		</wssuc:InputFormSection>
        
        <wssuc:InputFormSection
			Title="<%$Resources:SPSiteDirectory2010GlobalResources,ADMIN_ScanJobManager_OwnersSection_Title%>" 
			Description="<%$Resources:SPSiteDirectory2010GlobalResources,ADMIN_ScanJobManager_OwnersSection_Description%>" 
            runat="server">
			<Template_InputFormControls>            
                <tr>
                    <td>
                        <asp:Literal ID="litUseSiteOwnersGroup" runat="server" Text="<%$Resources:SPSiteDirectory2010GlobalResources,ADMIN_ScanJobManager_OwnersSection_UseSiteOwnersGroup%>" />
                        <asp:CheckBox id="UseSiteOwnersGroup" runat="server" Checked="True"></asp:CheckBox> 
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Literal ID="litUseManageWeb" runat="server" Text="<%$Resources:SPSiteDirectory2010GlobalResources,ADMIN_ScanJobManager_OwnersSection_UseManageWeb%>" />
                        <asp:CheckBox id="UseManageWebPermission" runat="server" Checked="True"></asp:CheckBox> 
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Literal ID="litUseSCA" runat="server" Text="<%$Resources:SPSiteDirectory2010GlobalResources,ADMIN_ScanJobManager_OwnersSection_UseSCA%>" />
                        <asp:CheckBox id="UseSiteCollectionAdministrators" runat="server" Checked="True"></asp:CheckBox> 
                    </td>
                </tr>
			</Template_InputFormControls>
		</wssuc:InputFormSection>

        <wssuc:InputFormSection
			Title="<%$Resources:SPSiteDirectory2010GlobalResources,ADMIN_ScanJobManager_SiteLogoSection_Title%>" 
			Description="<%$Resources:SPSiteDirectory2010GlobalResources,ADMIN_ScanJobManager_SiteLogoSection_Description%>" 
            runat="server">
			<Template_InputFormControls> 
                <tr>
                    <td>
                        <asp:Literal ID="litUseSiteLogo" runat="server" Text="<%$Resources:SPSiteDirectory2010GlobalResources,ADMIN_ScanJobManager_SiteLogoSection_UseSiteLogo%>" />
                        <asp:CheckBox id="UseSiteLogo" runat="server" Checked="True"></asp:CheckBox> 
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Literal ID="litEnsureLogo" runat="server" Text="<%$Resources:SPSiteDirectory2010GlobalResources,ADMIN_ScanJobManager_SiteLogoSection_EnsureLogo%>" />
                        <asp:CheckBox id="EnsureLogo" runat="server" Checked="True"></asp:CheckBox> 
                    </td>
                </tr>                
                <tr>
                    <td>
                        <asp:Literal ID="litDefaultLogoURL" runat="server" Text="<%$Resources:SPSiteDirectory2010GlobalResources,ADMIN_ScanJobManager_SiteLogoSection_DefaultLogoURL%>" />
                        <asp:TextBox ID="DefaultLogoURL" Width="100%" runat="server">/_layouts/images/siteIcon.png</asp:TextBox>
                    </td>
                </tr>
            </Template_InputFormControls>
		</wssuc:InputFormSection>

        <wssuc:InputFormSection
			Title="<%$Resources:SPSiteDirectory2010GlobalResources,ADMIN_ScanJobManager_OtherSettingsSection_Title%>" 
			Description="<%$Resources:SPSiteDirectory2010GlobalResources,ADMIN_ScanJobManager_OtherSettingsSection_Description%>" 
            runat="server">
			<Template_InputFormControls>            
                <tr>
                    <td>
                        <asp:Literal ID="litIncludeSubSites" runat="server" Text="<%$Resources:SPSiteDirectory2010GlobalResources,ADMIN_ScanJobManager_OtherSettingsSection_IncludeSubSites%>" />
                        <asp:CheckBox id="IncludeSubSites" runat="server" Checked="True"></asp:CheckBox> 
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Literal ID="litExclusionURLs" runat="server" Text="<%$Resources:SPSiteDirectory2010GlobalResources,ADMIN_ScanJobManager_OtherSettingsSection_ExclusionURLs%>" />
                        <asp:TextBox ID="ExclusionURLs" runat="server" Rows="5" TextMode="MultiLine" Width="100%"></asp:TextBox>
                        <asp:Literal ID="litExclusionURLsAdvice" runat="server" Text="<%$Resources:SPSiteDirectory2010GlobalResources,ADMIN_ScanJobManager_OtherSettingsSection_ExclusionURLs_Advice%>" />
                    </td>
                </tr>
			</Template_InputFormControls>
		</wssuc:InputFormSection>

        <!-- Buttons -->
        <wssuc:ButtonSection runat="server">
          <template_buttons>
            <asp:Button id="OKButton" runat="server" class="ms-ButtonHeightWidth" Text="<%$Resources:SPSiteDirectory2010GlobalResources,ADMIN_ButtonsSection_OKButton%>" OnClick="OKButton_OnClick" />
            <asp:Button id="DisableButton" runat="server" class="ms-ButtonHeightWidth" Text="<%$Resources:SPSiteDirectory2010GlobalResources,ADMIN_ButtonsSection_DisableButton%>" OnClick="DisableButton_OnClick" />
          </template_buttons>
        </wssuc:ButtonSection>
      </td>
    </tr>
  </table>
</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
<asp:Literal ID="litPageTitle" runat="server" Text="<%$Resources:SPSiteDirectory2010GlobalResources,ADMIN_ScanJobManager_Page_Title%>" />
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
<asp:Literal ID="litPageTitleInTitleArea" runat="server" Text="<%$Resources:SPSiteDirectory2010GlobalResources,ADMIN_ScanJobManager_Page_Title%>" />
</asp:Content>
